Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /


Chapter 10 - AppleTalk Addressing

This chapter describes how to use the AppleTalk address formats to locate an AppleTalk endpoint or to make your endpoint visible to other endpoints across an Open Transport AppleTalk network. Whenever you want to communicate across the network, you need to be able to identify your own local endpoint and the remote endpoint with which you want to communicate. You can use a user name, a physical socket address, or a combination of the two to identify the endpoints. Open Transport provides a specific address format for each of these cases and several utility functions to initialize them.

In order for you to make the name of your AppleTalk endpoint visible to other applications on a network, you must register its name. There are two ways of doing this, but in either case, Open Transport uses the Name Binding Protocol (NBP) to associate the endpoint's name with its physical address. Open Transport provides several utility functions and a specialized data structure, the NBP entity, for more convenient manipulation of NBP names.

This chapter provides information about endpoint and mapper functions that you can use to register a name, to look up name and address information, and to browse for all protocol addresses associated with a name or name pattern.

You should read this chapter if your application uses an AppleTalk networking protocol and you need to

Some of these tasks are available through endpoint and mapper functions, which are described in the chapters "Endpoints" and "Mappers" in this book. You should be familiar with the material in those chapters before you read
this chapter.


Chapter Contents
About AppleTalk Addressing
Using AppleTalk Addressing
Specifying a DDP Address
Specifying an NBP Address
Specifying a Combined DDP-NBP Address
Specifying and Using a Multinode Address
Registering Your Endpoint's Name
Looking Up Names and Addresses
Manipulating an NBP Name
AppleTalk Addressing Reference
Constants and Data Types
Basic Constants
Address Format Constants
The DDP Address Structure
The NBP Address Structure
The Combined DDP-NBP Address Structure
The Multinode Address Structure
The NBP Entity Structure
Functions

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996